package com.jianqiao.delivery.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.ArrayList;
import java.util.List;

/**
 * author: cyx
 * create: 2024/12/3 9:15
 **/
@Getter
@AllArgsConstructor
public enum MailSendTypeEnum {

    REGISTER_VERIFICATION("0" ,"register"),

    RESET_PASSWORD_VERIFICATION("1" ,"resetpassword");

    private String value;
    private String desc;

    public static List<String> getAllValues() {
        List<String> values = new ArrayList<>();
        for (MailSendTypeEnum type : MailSendTypeEnum.values()) {
            values.add(type.getValue());
        }
        return values;
    }
}
